﻿@model List<AppBase>
<a href="/developer/createApp?returnUrl=@Context.Request.PathAndQuery()">添加新应用</a>
<table class="table table-condensed">
    <thead>
        <tr>
            <th>ID</th>
            <th>名称</th>
            <th>描述</th>
            <th>删除</th>
            <th>下架</th>
            <th>版本</th>
            <th>操作</th>
        </tr>
    </thead>
    <tbody>
        @foreach (var item in Model)
        {
            <tr>
                <td>@item.ID</td>
                <td>@item.Name</td>
                <td>@item.Description</td>
                <td>@item.Deleted</td>
                <td title="@item.OffShelveReason">@item.IsOffShelve</td>
                <td>@item.Version</td>
                <td>
                    <a href="/developer/upload?returnUrl=@Context.Request.PathAndQuery()">上传应用</a>|
                    <a href="#">禁用下载</a>|
                    <a href="#">启用下载</a>|
                    <a href="#">历史版本</a>|
                    <a href="/developer/appjson?id=@item.ID">app.json</a>
                </td>
            </tr>
        }
    </tbody>
</table>
